package items;

import java.util.ArrayList;

/*
 * Other items that the user requested
 */
public enum Others {
	Bstav ("Battlestaff", 1391),
	Spine ("Cactus Spine", 6016),
	Sand ("Bucket of sand", 1783);
	
	public static final String group = "others";
	private String itemName;
	private int itemNumber;

	public int getItemNumber() {
		return itemNumber;
	}

	public void setItemNumber(int itemNumber) {
		this.itemNumber = itemNumber;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	Others(String itemName, int itemNumber) {
		this.setItemName(itemName);
		this.setItemNumber(itemNumber);
	}

	@Override
	public String toString() {
		Number string = getItemNumber();
		return string.toString();
	}
	
	public static boolean itemCategory(String category) {
		return category.equalsIgnoreCase("others") ? true : false;
	}
	
	public static ArrayList<String> itemNameList() {
		ArrayList<String> itemList = new ArrayList<String>();
		for(Others items : Others.values()) {
			itemList.add(items.getItemName());
		}
		return itemList;
	}
	
	public static ArrayList<String> itemNumberList() {
		ArrayList<String> itemNumberList = new ArrayList<String>();
		for(Others items : Others.values()) {
			itemNumberList.add(items.toString());
		}
		return itemNumberList;
	}
}
